﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CategorySearchPropertyItems.ascx.cs"
    Inherits="ZLCMS.Web.Product.UC.CategorySearchPropertyItems" %>
   
<div class="product_fl" id="div_category_search_property"  <%--<%= PropertyList.Count==0?" style='display:block;'":"" %>--%>>
    <ul class="childs_cnav">
    <li><img src="/memberuser/images/bg_sprite.png" /></li>
    <%= GetNavHtml() %>
    </ul>
    
    <ul class="box">
    <% if (rpt_son_category.Items.Count > 0)
       { %>
    <li class="first" name="" > 
    <label ><%--<%= _category == null ? "" : _category.CategoryName%>--%>分类</label>
               <ul> 
                <li><a <%= (Request["categoryid"]==(_category==null?"":_category.Id.ToString()))?" class='acitve'":"" %>   href="/product/productlist.aspx?categoryid=<%=Request["categoryid"] %>&tagid=<%=Request["tagid"] %>">全部</a></li>
                  <asp:Repeater ID="rpt_son_category" runat="server">
                            <ItemTemplate>
                            <li><a <%# Request["categoryid"]==Eval("Id")?" class='acitve'":"" %> href="/product/productlist.aspx?categoryid=<%#Eval("Id") %>&tagid=<%=Request["tagid"] %>"><%#Eval("CategoryName") %></a></li>
                             </ItemTemplate>
                        </asp:Repeater>
               </ul>
               <div class="clear"> </div>
               </li>
               <%} %>
        <asp:Repeater ID="rpt_property" runat="server"   onitemdatabound="rptOrder_ItemDataBound">
            <ItemTemplate>
              

                <li class="first" name="<%# Eval("Id") %>" >
                    <label >
                        <%# Eval("PropertyValue") %></label>
                    <ul>
                   

                   
                        <asp:Repeater ID="rpt_property_item" runat="server">
                            <ItemTemplate>
                               <li><a propertyitemid="<%# Eval("Id") %>" name="item_<%# Eval("SearchPropertyId") %>" <%# GetUrlHtml(Convert.ToInt32( Eval("SearchPropertyId")),Convert.ToInt32(Eval("Id"))) %>><%# Eval("PropertyName") %></a></li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                    <div class="clear">
                    </div>
                </li>
            </ItemTemplate>
        </asp:Repeater>
    </ul>
</div>
